#pragma once
#include "ConnectPool.h"
#include<list>
#include"data.h"
#include<stdio.h>
#include<string.h>
#include<vector>
class UserModel
{ 
public:
    list<USER_T> query_all_user();

    bool query_user(int id,string pwd);

    vector<FRI_T> query_all_Friend(int id);

    vector<CHAT_T> query_all_chat(int send_id,int recv_id);

    //插入消息
    bool insert_chat(int send_id,int recv_id,string msg);
    
private:    
};